<script setup>
// 导入子组件
import Son1Com from '@/components/Son1Com.vue'
import Son2Com from '@/components/Son2Com.vue'
// 根据仓库名，导入定义的仓库
import { useCounterStore } from '@/store/counter'
const counterStore = useCounterStore()
console.log(counterStore)
</script>

<template>
  <div>
    <h3>App.vue根组件 - {{ counterStore.msg }} </h3>
    <h3>count值：{{ counterStore.count }}</h3>
    <h3>count的2倍：{{ counterStore.double }}</h3>
    <Son1Com/>
    <Son2Com/>
  </div>
</template>
